<!DOCTYPE html>
<html lang="en">
<head>
    <link th:replace="include/header.html">
    <title>预估</title>
</head>
<body>
    <table width="90%" class="table">
        <tr>
            <th>净值</th>
            <th>购买份额</th>
            <th>总份额</th>
            <th>平均成本</th>
            <th>亏损幅度</th>
        </tr>
        <tr th:each="p : ${percents}">
            <td th:text="${p.percent}"></td>
            <td th:text="${p.unit}"></td>
            <td th:text="${p.totalUnit}"></td>
            <td th:text="${#numbers.formatDecimal(p.avg, 1, 2)}"></td>
            <td th:text="${#numbers.formatDecimal(p.loss, 1, 2)}"></td>
        </tr>
    </table>
</body>
</html>